home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1994 August
/
August CD.bin
/
Shareware
/
Games
/
Core War
/
Battle Programs
/
contest92
/
A11 Scout
< prev
next >
Wrap
Text File
|
1992-12-08
|
874b
|
40 lines
;
; scout
; prepared by William Hamaker
; December 2, 1992
;
; this does a fast sequential scan using the comparison operation
; with a scan width of 8 so only very small programs will be missed.
;
; the kill routine using spl 0 bombs is fast and doesn't get
; slowed down very much by the presence of data bombs.
;
; statements are spaced so that 3 of each 8 memory locations are
; dat #0 which makes evenly spaced bombers have a harder time hitting it
;
; after scanning memory it goes back and does a simple memory fill
; with data bombs.
;
start add incr comp
comp cmp start-40 start-32
jmp kill
count djn start #501
jmp shoot
dat #0
dat #0
dat #0
kill mov bomb @comp
sub decr comp
djn start count
shoot mov decr <incr
jmp shoot
dat #0
dat #0
dat #0
bomb spl 0 #-16
dat #0
dat #0
decr dat #-13 #-13
incr dat #-16 #-16
end start